Einhugur macOS Bridge plugin.

NSSegmentedControl.FromPtr Method

Constructs NSSegmentedControl object from Ptr handle coming from declares or 3rd party plugin.

shared FromPtr(
   imagePtr as Ptr) as EinhugurMacOSBridge.NSSegmentedControl

Parameters

imagePtr
Ptr handle coming from declare or 3rd party plugin that points to live NSSegmentedControl object.

Returns

EinhugurMacOSBridge.NSSegmentedControl

Remarks

Do not pass Ptr in here that is not actually NSSegmentedControl handle, doing so would generate crash.

The NSSegmentedControl class will handle retaining the object once and releasing once the object once the NSSegmentedControl class is no longer used.

See Also

NSSegmentedControl Class